import hm_15_名片_tools_02

while True:
    # TODO(小明) 显示系统菜单
    hm_15_名片_tools_02.show_menu()

    action = input("请选择操作功能：")
    print("您选择的操作是：%s" % action)
    if action in ["1","2","3"]:
        if action == "1":
            hm_15_名片_tools_02.new_card()

        elif action == "2":
            hm_15_名片_tools_02.show_all()

        elif action == "3":
            hm_15_名片_tools_02.search_card()
    elif action == '0':
        print("欢迎再次使用【名片管理系统】")

        break
    else:
        print("输入错误，请重新输入")

